$(function() {
	
	$('#submission_form').submit(function(e) {
		validate_form();
		return false;
	});
	
});

function validate_form() {
	var valid = true;
	if (!$('#customer_name').val()) {
		$('.error_customer_name').show();
		valid = false;
	} else {
		$('.error_customer_name').hide();
	}
	
	if( !$('#customer_surname').val() ) 
	{
		$('.error_customer_surname').show();
		valid=false;
	} else {
		$('.error_customer_surname').hide();
	}

	return valid;
}
